package example1;

/**
 * <h3>designPattern</h3>
 * <p>香肠装饰器（具体装饰类）</p>
 * @author : zhang.bw
 * @date : 2021-02-26 15:45
 **/
public class SausageDecorator extends AbstractDecorator{

	public SausageDecorator(ABattercake aBattercake) {
		super(aBattercake);
	}
	@Override
	protected void doSomething() {
	}

	@Override
	protected String getDesc() {
		return super.getDesc() + " 加一根香肠";
	}

	@Override
	protected int cost() {
		return super.cost() + 2;
	}
}
